﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna;
using Microsoft.Xna.Framework;

using FarseerPhysics.Dynamics;

namespace Spacer {
    public class Sun : Planet {
		public Sun() {}

        public Sun(SolarSys system, int seed) : base(system,seed) {
			if( this.GetType() == typeof(Sun) ) Initialize();
        }

		public override void Initialize() {
			base.Initialize();

			Texture = Main.FindTexture( "Sun" );
			DrawMode = DrawMode.Texture;
			DrawLayer = Layer.LAYER_19;
			DrawOrigin = new Vector2( Texture.Width*0.5f, Texture.Height*0.5f );
			DrawScale = new Vector2((32f / 510f) *20f, (32f / 510f) * 20f );
		}

		public override void Draw()
		{
			Angle += 0.025f * Globals.DrawDeltaTime;
			base.Draw();
		}
    }
}
